import {
    SHOPSTATUSDIC
} from '@/const/shopStatusDic'
export const classOption = {
    tree:true,
    border: true,
    expandAll:false,
    index: true,
    addBtn:false,
    delBtn:false,
    editBtn:false,
    menuWidth:400,
    menuAlign:'center',
    menu:true,
    dicData: SHOPSTATUSDIC,
    column: [
        /**类型名称*/
        {
        label:"类型名称",
        prop:"className",
        fixed: true,
        width:180,
            rules: [{
                   required: true,
                   message: "类型名称",
                   trigger: "blur"
               }]
        },
        /**是否显示*/
        {
        label:"是否显示",
        prop:"display",
        fixed: true,
        width:80,
        type: 'switch',
        dicData:SHOPSTATUSDIC.RECOMMEND,
            rules: [{
                   required: true,
                   message: "是否显示",
                   trigger: "blur"
               }]
        },
        /**等级*/
        {
        label:"等级",
        prop:"level",
        fixed: true,
        width:80,
            rules: [{
                   required: true,
                   message: "等级",
                   trigger: "blur"
               }]
        },
        /**推荐*/
        {
        label:"推荐",
        prop:"recommend",
        fixed: true,
        width:80,
        type: 'switch',
        dicData:SHOPSTATUSDIC.RECOMMEND,
            rules: [{
                   required: true,
                   message: "推荐",
                   trigger: "blur"
               }]
        },
        /**排序*/
        {
        label:"排序",
        prop:"sequence",
        fixed: true,
            width:80,
            rules: [{
                   required: true,
                   message: "排序",
                   trigger: "blur"
               }]
        },
        /**上级ID*/
        {
        label:"上级ID",
        prop:"parentId",
        fixed: true,
        width:170,
        type: 'tree',
        dicUrl: 'http://127.0.0.1:8087/shopClass/treeList',
        dicData: 'parentId',
            props: {
                label: "className",
                value: "id",
                children: "children"
            },
            rules: [{
                   required: true,
                   message: "上级ID",
                   trigger: "blur"
               }]
        },
        /**优化搜索简介*/
        {
        label:"优化搜索简介",
        prop:"seoDescription",
        fixed: true,
            width:220,
            rules: [{
                   required: true,
                   message: "优化搜索简介",
                   trigger: "blur"
               }]
        },
        /**优化搜索关键字*/
        {
        label:"优化搜索关键字",
        prop:"seoKeywords",
        fixed: true,
            width:220,
            rules: [{
                   required: true,
                   message: "优化搜索关键字",
                   trigger: "blur"
               }]
        }
    ]

};

